package com.burpee.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.burpee.dao.GroupMemberDao;
import com.burpee.ui.GroupMember;

@Service(value="groupmemberService")
public class GroupMemberServiceImpl implements GroupMemberService {

	@Autowired
	GroupMemberDao groupMemberDao;
	public List<GroupMember> list(long groupNo) {
		
		return groupMemberDao.list(groupNo);
	}

	public GroupMember view(GroupMember groupMember) {
		
		return groupMemberDao.view(groupMember);
	}

	public boolean add(GroupMember groupMember) {
		if(groupMemberDao.add(groupMember) > 0){
			return true;
		}
		else{

			return false;
		}
	}

	public boolean modify(GroupMember groupMember) {
		if(groupMemberDao.modify(groupMember) > 0){
			return true;
		}
		else{

			return false;
		}
	}

	public boolean remove(GroupMember groupMember) {
		if(groupMemberDao.remove(groupMember) > 0){
			return true;
		}
		else{

			return false;
		}
	}


}
